package com.yqy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2023/7/11 15:49
 * @updateUser : modify
 * @updateTime : 2023/7/11 15:49
 * @updateRemark :
 */
@Data
@ApiModel(value = "UserDTO", description = "用户信息")
public class UserDTO {

    @ApiModelProperty(value = "id", example = "1")
    private Long id;

    @ApiModelProperty(value = "姓名", example = "张三", required = true)
    private String name;

    @ApiModelProperty(value = "年龄", example = "18", required = true)
    private Integer age;

    @ApiModelProperty(value = "性别", example = "1")
    private Integer sex;

    @ApiModelProperty(value = "职位", example = "程序员")
    private String post;

    @ApiModelProperty(value = "地址", example = "湖南省长沙市")
    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "生日", example = "2023-07-11")
    private Date entryDate;
}
